﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.CodeDom.Compiler;

namespace RobotBattle2.Scripting {
	public sealed class SymbolReference : AstNode {
		public SymbolReference(string text, SourceLocation location) {
			this.Text = text;
			this.Location = location;
		}

		public string Text { get; private set; }
		public SourceLocation Location { get; private set; }

		public override void Dump(IndentedTextWriter writer) {
			writer.Write(Text);
		}

		public static implicit operator SymbolReference(string from) {
			return new SymbolReference(from, null);
		}
	}
}
